<?php

namespace App\Component\Resp;

use Teeb\Base\Application;

class RespManager
{
    protected $app;
    protected $resp;
    public function __construct(Application $app)
    {
        $this->app = $app; //绑定app对象
        require_once($app->basePath().'/library/resp/Resp.class.php'); //引入Response类主接口文件
        $this->resp = new \Resp();//初始化新的Response对象,并且传入构造初始化模板参数
    }

    public function __call($method, $param)
    {
        return call_user_func_array(array($this->resp, $method), $param);  
    }
}